package com.school.generator.service;


import com.school.generator.bean.BaseBean;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;
import java.util.zip.ZipOutputStream;


public interface RawDataService {

    /**
     *  生成文件流形式
     * @param baseBean 配置类型
     * @param zip 流对象
     * @author : sunpx
     * @date : 2022-04-29 10:23:04
     */
    void generateProjectFiles(BaseBean baseBean, ZipOutputStream zip) throws Exception;


     /**
      * 获取所有表
      * @author : sunpx
      * @param database 数据库名称
      * @return java.util.List<java.util.Map<java.lang.String,java.lang.String>>
      * @date : 2022-04-29 10:25:52
      */
     List<Map<String, String>> tableList(String database);

     /**
      * 获取字段信息
      * @author : sunpx
      * @param tableName
      * @return com.school.generator.bean.BaseBean
      * @date : 2022-04-29 10:26:27
      */
     BaseBean getBaseBean(@PathVariable("tableName") String tableName);

}
